package com.hfxt.service;

import com.hfxt.entity.Role;
import com.hfxt.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author WangXiaoTian
 * @version 1.0.0
 * @ClassName RoleServiceImpl.java
 * @Description TODO
 * @createTime 2021年 03月 18日 09:50:00
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    //查询所有角色
    @Override
    public List<Role> queryAllRoles() {
        return roleMapper.queryAllRoles();
    }
}
